
package system.base;
import framework.core.DBConnection;
import framework.core.IHandler;
import framework.core.ILoginContext;
import framework.core.Logger;
import framework.core.SearchEvent;
import framework.core.SrvContext;


/*
	Author    :chengbiao.he
	CreateTime:2008-02-14 08:38:58
*/
public class ProductCreateSrv extends IHandler
{

	public ProductCreateSrv() 
	{
		super();
	}
	private void listProductCreate(DBConnection con,SrvContext context,String path) throws Exception
	{
		
		OperateRecordSearchEvent event = (OperateRecordSearchEvent)SearchEvent.fromForm(context,OperateRecordSearchEvent.class);
		
		context.setSessionValue("ProductCreateSearchEvent",event);
		
		context.setNextUrl(path+"ProductCreateList.jsp");
	}

	public void doAction(DBConnection con,SrvContext context,ILoginContext loginContext) throws Exception
	{
		String action_code = context.getActionCode();
		String path = "/system/base/";
		
		if(action_code.equalsIgnoreCase("listProductCreate"))
		{
			listProductCreate(con,context,path);
			return;
		}


		Logger.throwException("ProductCreateSrv","unknown action_code="+action_code);
	}

}
